//
//  HMDealTool.h
//  黑团HD
//
//  Created by apple on 14-8-16.
//  Copyright (c) 2014年 heima. All rights reserved.
//  业务类（负责团购的所有业务）

#import <Foundation/Foundation.h>
#import "FindBusnissParam.h"
#import "FindBusnissResult.h"
#import "MSFindDealsParam.h"               //请求数据对象
#import "MSFindDealsResult.h"
#import "FindBusnissSingleParam.h"
#import "FindBusnissSingleResult.h"
#import "MSGetSingleDealParam.h"
#import "MSGetSingleDealResult.h"

@interface MSDealTool : NSObject

/**
 *  搜索团购
 *
 *  @param param   请求参数
 *  @param success 请求成功后的回调
 *  @param failure 请求失败后的回调
 */
+ (void)findDeals:(MSFindDealsParam *)param success:(void (^)(MSFindDealsResult *result))success failure:(void (^)(NSError *error))failure;

/**
 *  搜索团购商家
 *
 *  @param param   搜索参数
 *  @param success 搜索结果
 *  @param failure 错误处理
 */

+(void)findBusniss:(FindBusnissParam*)param success:(void(^)(FindBusnissResult *result))success failure:(void (^)(NSError *error))failure;



/**
 *  获取指定商户的团购信息
 *
 *  @param param   <#param description#>
 *  @param success <#success description#>
 *  @param failure <#failure description#>
 */
+(void)findBusnissSingle:(FindBusnissSingleParam*)param success:(void(^)(FindBusnissSingleResult * result))success failure:(void(^)(NSError * error))failure;


/**
 *  获得指定团购（获得单个团购信息）
 */
+ (void)getSingleDeal:(MSGetSingleDealParam *)param success:(void (^)(MSGetSingleDealResult *result))success failure:(void (^)(NSError *error))failure;


@end
